<div class="row">
  <div class="col-xs-12">
    <div class="box">
      <div class="box-header">
        <h3 class="box-title">Detail Klaim</h3>
      </div><!-- /.box-header -->
      <div class="box-body">
      	<div class="table-responsive">
	        <table class="table">
						<?php
							if(!empty($list)){
								?>	
									<tr>
										<th width="15%">Kode Klaim</th>
										<td width="35%">: <?=$list['kd_klaim']?></td>	
										<th width="15%">Jenis Kunjungan</th>
										<td width="35%">: <?=$list['jenis_kunjungan']?></td>			
									</tr>
									<tr>
										<th>No Register</th>
										<td>: <?=$list['kd_peserta']?></td>
										<th>Tanggal Masuk</th>
										<td>: <?=id_date($list['tgl_masuk'],'long')?></td>				
									</tr>
									<tr>
										<th>Nama Pasien</th>
										<td>: <?=$list['nama']?></td>
										<th>Tanggal Keluar</th>
										<td>: <?=id_date($list['tgl_keluar'],'long')?></td>				
									</tr>
									<tr>
										<th>Jenis Kelamin</th>
										<td>: 
											<?php
												if($list['jk'] == 'L'){
													echo "Laki-laki";
												}else{
													echo "Perempuan";
												}
											?>
										</td>
										<th>LOS</th>
										<td>: <?=$list['los']?></td>				
									</tr>
									<tr>
										<th>Tempat, Tanggal Lahir</th>
										<td>: <?=$list['tempat_lahir'].", ".id_date($list['tgl_lahir'],'long');?></td>
										<th>Diagnosa Awal</th>
										<td>: <?=$list['diagnosa_lain']?></td>
									</tr>
								<?php 
							}else{
								?>
									<tr>
										<td colspan="2" align="center">Tidak ada data</td>
									</tr>
								<?php 
							}
						?>
					</table>
				</div>

				<?php
					if(isset($diagnosa)){
						?>
							<br>
							<h4 class="judul-detail">Diagnosa Akhir</h4>	
							<div class="table-responsive">
								<table class="table table-striped table-bordered table-hover table-condensed">
									<thead>
										<tr>
											<th width="5%">#</th>
											<th>Diagnosa</th>
										</tr>
									</thead>
									<tbody>
										<?php
											$no = 1;
											foreach ($diagnosa as $value) {
												?>	
													<tr>
														<td><?=$no++?></td>
														<td><?=$value['diagnosa']?></td>				
													</tr>
												<?php
											}
										?>
									</tbody>
								</table>
							</div>
						<?php
					}
				?>								
      </div><!-- /.box-body -->
    </div><!-- /.box -->                            
  </div>
</div>